package com.kaigejava.template;

/**
 * Created by kaigejava on 2019/9/4.
 */
public class Coffee {

    public void prepareRecipe(){
        //烧开水
        boilWater();
        //冲咖啡
        brewCoffee();
        //倒入杯中
        pourInCup();
        //加糖或牛奶
        addSugarOrMilk();
        //送个客人
        send();
    }

    private void send() {
        System.out.println("五.送个客人");
    }

    private void addSugarOrMilk() {
        System.out.println("四.加糖或牛奶");
    }

    private void pourInCup() {
        System.out.println("三.倒入杯中");
    }

    private void brewCoffee() {
        System.out.println("二.冲咖啡");
    }

    private void boilWater() {
        System.out.println("一.烧水");
    }
}
